import axios from "../../axios";

//======================================================================
// 我的足迹
export const myfootmark = (param) => {
    return axios.request({
      url: "/shops/user/history/myRecentHistoryBrowse",
      method: "GET",
      params: param,
    });
};

// 全部预约
export const myallAppoints = (param) => {
  return axios.request({
    url: "/shops/user/appoint/myAllAppoints",
    method: "GET",
    params: param,
  });
};
// 已完成 未进行 待评价 
export const myAppoints = (param) => {
  return axios.request({
    url: "/shops/user/appoint/myAppointsForStates",
    method: "GET",
    params: param,
  });
};

// 我的收藏
export const myCollections = (param) => {
  return axios.request({
    url: "/shops/user/collection/myCollections",
    method: "GET",
    params: param,
  });
};
//===============================================================
//申请取消预约
export const cancelAppoint = (param) => {
  return axios.request({
    url: "/shops/user/appoint/cancelAppoint",
    method: "GET",
    params: param,
  });
};

 // 取消收藏
 export const cancelCollection = (param) => {
  return axios.request({
    url: "/shops/user/collection/addCollection",
    method: "POST",
    params: param,
  });
};

 // 删除我的足迹
 export const cancelmyfootmark = (param) => {
  return axios.request({
    url: "/shops/user/history/deleteMyHistoryBrowse",
    method: "DELETE",
    params: param,
  });
};

//删除预约记录
export const deleteAppointRecord = (param) => {
  return axios.request({
    url: "/shops/user/appoint/deleteAppointRecord",
    method: "DELETE",
    params: param,
  });
};




